package org.example.feign;

import org.example.domain.Prod;
import org.example.feign.sentinel.StoreProdFeignSentinel;
import org.example.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//门店业务模块调用商品业务模块Feign接口
@FeignClient(value = "product-service", contextId = "StoreProdClient" , fallback = StoreProdFeignSentinel.class)
public interface StoreProdFeign {

    @GetMapping("prod/prod/getProdListByIds" )
    public Result<List<Prod>> getProdListByIds(@RequestParam List<Long> prodIdList);

}
